﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JzSport.WebApp.Console
{
    public partial class ActivityMonitorThread : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!IsPostBack)
            //{
            //    if (Global._thread == null)
            //    {
            //        _ctlBtnStart.Enabled = true;
            //        _ctlBtnStop.Enabled = false;
            //    }
            //    else
            //    {
            //        _ctlBtnStart.Enabled = false;
            //        _ctlBtnStop.Enabled = true;
            //    }
            //}
        }

        protected void _ctlBtnStart_Click(object sender, EventArgs e)
        {
            //new Model.PromotionalActivityService().Test();
            //Global.StartActivityMonitorThread();
            Response.Redirect("~/Console/ActivityMonitorThread.aspx");
        }

        protected void _ctlBtnStop_Click(object sender, EventArgs e)
        {
            //Global.StopActivityMonitorThread();
            Response.Redirect("~/Console/ActivityMonitorThread.aspx");
        }
    }
}